//
//  AnswersOfDataQAADetailedInformation.m
//  LCOnePsychology
//
//  Created by li cheng on 16/09/23
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "AnswersOfDataQAADetailedInformation.h"
#import "ReplyOfAnswersDataQAADetailedInformation.h"
#import "UserOfAnswersDataQAADetailedInformation.h"
@implementation AnswersOfDataQAADetailedInformation
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"reply"]) {
        NSMutableArray<ReplyOfAnswersDataQAADetailedInformation *> *mArrayOfReplyOfAnswersDataQAADetailedInformation = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ReplyOfAnswersDataQAADetailedInformation *replyOfAnswersDataQAADetailedInformation = [ReplyOfAnswersDataQAADetailedInformation modelDic:dic];
            [mArrayOfReplyOfAnswersDataQAADetailedInformation addObject:replyOfAnswersDataQAADetailedInformation];
        }
        _reply = mArrayOfReplyOfAnswersDataQAADetailedInformation;
    }
    if ([key isEqualToString:@"user"]) {
        _user = [UserOfAnswersDataQAADetailedInformation modelDic:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"reply" : [ReplyOfAnswersDataQAADetailedInformation class]};
}

@end
